import {
	post
} from './api.js'

// 发布需求
export const demand_add = (data) => {
	// 发送登录请求
	return post('/users/publish/demand_add', data)
}

// 发布需求
export const mapGetInfo = (data) => {
	// 发送登录请求
	return post('/common/common/get_address', data)
}

export const requireType = (data)=>{
	return post('/common/demand/cat_list',data)
}

export const designItem = (data)=>{
	return post('/common/service/area_designer',data)
}

export const cropItem = (data)=>{
	return post('/common/service/area_corp',data)
}

// 需求的接口
// 需求列表
export const list = (data) => {
	return post('/users/publish/demand_list', data)
}
// 需求详情
export const details = (data) => {
	return post('/users/publish/demand_edit_get', data)
}

// 需求详情
export const details2 = (data) => {
	return post('/users/publish/demand_get', data)
}

// 需求编辑保存
export const demand_edit = (data) => {
	return post('/users/publish/demand_edit', data)
}
// 设计师数量
export const get_area_design_num = (data) => {
	return post('/common/service/get_area_design_num', data)
}
// 需求关闭
export const demand_close = (data) => {
	return post('/users/publish/demand_close', data)
}


// 施工进度-指定日期
export const build_log = (data) => {
	return post('/users/publish/build_log', data)
}

// 施工验收详情-需动态记录

export const accept_info = (data) => {
	return post('/users/publish/accept_info', data)
}

// 设计验收
export const design_accept = (data) => {
	return post('/users/publish/design_accept', data)
}

// 施工验收
export const build_accept = (data) => {
	return post('/users/publish/build_accept', data)
}


// 施工验收信息 - 需求列表验收按钮
export const acceptData = (data) => {
	return post('/users/publish/accept', data)
}

//订单详情
export const demand_order = (data) => {
	return post('/users/publish/demand_order', data)
}

//订单支付
export const order_pay = (data) => {
	return post('/users/publish/order_pay', data)
}